package com.lirh.mysql.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@TableName("reply")
@Data
public class Reply {
    @TableId(type = IdType.AUTO)
    private int id;
    private int tieziid;
    private int fatherid;
    private String author;
    private String content;
    private int zan;
    private int cai;
    private int shunxu;
    private int clevel;
    @TableField(exist = false)
    private List<Reply> children;
}
